import java.util.*;
/*给你一个字符串 s ，仅反转字符串中的所有元音字母，并返回结果字符串。
元音字母包括 'a'、'e'、'i'、'o'、'u'，且可能以大小写两种形式出现不止一次。
输入：s = "IceCreAm"
输出："AceCreIm"*/
public class Main {
    public static String change(String s) {
        char[] arr = s.toCharArray();
        StringBuffer t = new StringBuffer();
        for (int i = 0; i < s.length(); i++) {
            if (arr[i] == 'a'
                    || arr[i] == 'e'
                    || arr[i] == 'i'
                    || arr[i] == 'o'
                    || arr[i] == 'u'
                    || arr[i] == 'A'
                    || arr[i] == 'E'
                    || arr[i] == 'I'
                    || arr[i] == 'O'
                    || arr[i] == 'U') {
                t.append(s.charAt(i));
            }
        }
        String res = t.reverse().toString();
        char[] temp = res.toCharArray();
        int count = 0;
        for (int i = 0; i < s.length(); i++) {
            char c = arr[i];
            if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' || c == 'A' || c == 'E'
                    || c == 'I' || c == 'O' || c == 'U') {
                arr[i] = temp[count];
                count++;
            }
        }
        return String.valueOf(arr);
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        String res = change(s);
        System.out.println(res);
    }
}